<?php

namespace Common\Model\Cache;

class Instance
{
    /**
     * @param string $name
     * @return Base|null
     */
    public static function make($name)
    {
        $class = '\\Common\\Model\\Cache\\' . parse_name($name, 1);
        $obj = null;
        if (class_exists($class)) {
            $obj = new $class();
        }
        return $obj;
    }
}